package com.wen.config.EquipmentFilter;

import com.wen.entry.bean.Equipment;

public class EquipmentLevelFilter implements Filter<Equipment> {
    private Integer level;
    public static final Integer BLUE = 1;

    public EquipmentLevelFilter(Integer level) {
        this.level = level;
    }

    @Override
    public boolean test(Equipment equipment) {
        return equipment.getLevel().equals(level);
    }
}
